<template>
  <div id="dplayer-component">
  </div>
</template>

<script>
export default {
  mounted () {
    this.$nextTick(() => {
      const dplayerElement = document.getElementById('dplayer-component')
      window.DPlayer({
        container: dplayerElement,
        screenshot: false, // 截图
        mutex: false,
        video: {
          url: 'http://192.168.1.201:7677/video/013644566663-2',
          type: 'flv'
        }
      })
    })
  }
}
</script>
